




window.onload = function () {
    //配置
    var config = {
        vx: 4,	//小球x轴速度,正为右，负为左
        vy: 4,	//小球y轴速度
        height: 2,	//小球高宽，其实为正方形，所以不宜太大
        width: 2,
        count: 200,		//点个数
        color: "0,0,0", 	//点颜色
        stroke: "50,50,50", 		//线条颜色
        dist: 6000, 	//点吸附距离
        e_dist: 20000, 	//鼠标吸附加速距离
        max_conn: 10 	//点到点最大连接数
    }

    //调用
    CanvasParticle(config);


    let one = document.querySelector(".nav .back .back-one")
    let two = document.querySelector(".nav .back .back-two")
    let three = document.querySelector(".nav .back .back-three")
    let four = document.querySelector(".nav .back .back-four")

    one.onclick = function () {
        scrollTo(0, 380)
    }
    two.onclick = function () {
        scrollTo(0, 800)
    }
    three.onclick = function () {
        scrollTo(0, 1210)
    }
    four.onclick = function () {
        scrollTo(0, 1630)
    }

}